package com.ruoyi.residents.controller;

import com.ruoyi.pojo.TbResidentTypes;
import com.ruoyi.residents.service.TbResidentsTypesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("residentsTypes")
public class TbResidentsTypesController {

    @Autowired
    private TbResidentsTypesService tbResidentsTypesService;

    @GetMapping("findAll")
    public List<TbResidentTypes> findAll(){
        List<TbResidentTypes> list = tbResidentsTypesService.list();
        return list;
    }
}
